<template>
  <div>
    <table
      class=""
      style="width:100%"
    >
      <template v-for="(item, index) in list">
        <tbody :key="index">
          <tr v-if="index == 0">
            <td style="text-align: center;background-color: darkgray;vertical-align: middle;">状态</td>
            <td style="text-align: center;background-color: darkgray;vertical-align: middle;">说明</td>
          </tr>
          <tr style="text-align: left;">
            <td style="width:120px;text-align: center;vertical-align: middle;font-size:13px">{{item.Name}}</td>
            <td style="vertical-align: middle;padding:5px 5px;"><span style="line-height:20px;font-size:13px;">{{item.Extra}}</span></td>
          </tr>
        </tbody>
      </template>
    </table>
  </div>

</template>
<script>
export default {
  name: "ExplainList",
  props: {
    Type: {
      type: String,
      default() {
        return "";
      },
    },
  },

  data() {
    return {
      list: [],
      searchValue: "",
      conditions: {},
      controller: "/WhProcessSafetyAccident",
      queryParams: {
        dataType: this.Type,
        keywords: "",
      },
      rightValue: 0,
    };
  },
  created() {
    this.getList();
  },
  mounted() {},
  methods: {
    getList() {
      this.queryParams.Parameter = this.Type;
      this.$axios
        .get("/WhProcessSafetyAccident/GetIDNameExtraEntity", {
          params: this.queryParams,
        })
        .then((res) => {
          this.loading = false;
          this.list = res.data;
        })
        .catch((err) => {
          this.finished = true;
        });
    },
  },
};
</script>
<style lang="less" scoped>
.phone {
  position: relative;
  .code {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 12px;
  }
}
.register-info {
  background-color: #e8f1f8;
  padding-bottom: 20px;
}
.img-box {
  height: 50px;
  width: 50px;
  padding: 10px;
  position: absolute;
  left: 50%;
  top: 60px;
  background-color: #fff;
  border-radius: 50%;
  overflow: hidden;
}

tr td,
th {
  border: 1px solid black;
}
tr {
  height: 30px;
  //text-align: center;
  white-space: pre-wrap;
  width: 100%;

  // text-align: left;
}
td {
  //text-align: left;

  white-space: pre-wrap;
}
.popup-title {
  line-height: 35px;
  padding: 10px;
  font-size: 15px;
  padding-left: 20px;
}

.op_btn {
  display: flex;
  justify-content: flex-end;
  .btn_item {
    display: flex;
    align-items: center;
    img {
      height: 15px;
      width: 15px;
      margin-right: 5px;
    }
  }
}

.search-box {
  height: 1rem;
}
</style>